<% layout('/layouts/default.html', {title: '考核任务指标汇总表管理', libs: ['layout', 'dataGrid','validate','fileupload','inputmask','ueditor']}){ %>
<div class="main-content">
	<div class="box box-main">
		<#form:form id="searchForm" model="${dcSupExamSumQuotaInfo}" action="${ctx}/quota/dcSupExamSumQuotaInfo/listData" method="post" class="form-inline "
		data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">
		<div class="box-header">
			<div class="box-title">
				<#form:hidden path="exameOrg"/>
				<#form:hidden path="examId" />
				<#form:hidden path="examYear" />
				<#form:hidden path="copyVersion" />
				<#form:hidden path="exameOrgName" />
				<!--此处为导出时选择的列的插入位置-->
				<#form:hidden path="exportColumn" />
			</div>
			<div  class="gg">
				<div style="float: left">
					<button type="button" class="btn btn-default btn-sm" style="font-size: 16px" onclick="js.closeCurrentTabPage()" >返回</button>
				</div>
				<div style="float: right; width: 95%;display: flex;overflow: hidden;" class="mr">
					<label class="col"  style="width: 30%;">
						<div class="text">${text('指标类别')}:</div>
						<div class="pp">
							<#form:select path="quotaTypes" dictType="dc_quotaType" multiple="true"  class="form-control " blankOptionLabel="全     部"  onchange="changeForm()" />
						</div>
					</label>
					<label class="col" style="width: 35%; justify-content: center;margin: 0px 5px" >
						<div class="text">${text('体系版本')}:</div>
						<div style="width: 65%;">
							<#form:select path="versionNumber" id="version" items="${versions}" itemLabel="versionName" itemValue="version"  class="form-control"  onchange="changeForm()" data-placeholder="请选择版本"/>
						</div>
					</label>
					<div class="col1 " style="display: none">
						<a href="#" class="btn btn-default" id="btnSetting" title="${text('设置')}"><i class="fa fa-navicon">选择列</i></a></div>
					<div class="col1 ">
						<a href="#"  id="yinru"  class="btn btn-primary text " style="" title="${text('引入最近报送指标')}">&nbsp;引入报送指标</a>
					</div>
					<div class="col1">
						<a href="#"  id="export"  class="btn btn-primary text " style="" title="${text('导出')}"> <i class="glyphicon glyphicon-export">&nbsp;导 出</i></a>
					</div>
					<div class="col1">
						<a href="#"  id="exportDocument"  class="btn btn-primary text " style="" title="${text('导入')}"> <i class="glyphicon glyphicon-import">&nbsp;导 入</i></a>
					</div>
				</div>
			</div>

			<div class="box-body" style="float: right;margin-bottom: 5px;padding: 0px">
				<div class="form-group">
					<button type="button"  class="btn btn-primary btn-sm" id="batchUpdateQuotaContent" title="${text('给左侧被考核单位统一修改考核指标')}"><i class="fa fa-plus">&nbsp;${text('批量修改单项指标')}</i></button>
				</div>
				<div class="form-group">
					<button type="button"  class="btn btn-primary btn-sm" id="batchAdd" title="${text('给左侧被考核单位统一新增考核指标')}"><i class="fa fa-plus">&nbsp;${text('批量新增单项指标')}</i></button>
				</div>
				<div class="form-group">
					<button type="button" onclick="batchUpdate()" id="batch" class="btn btn-primary btn-sm">${text('批量修改')}</button>
				</div>
			</div>
		</div>
		<div class="box-body">

		</#form:form>
		<div class="ui-layout-content" id="dynamicTable">
			<table id="dataGrid"></table>
		</div>
	</div>
</div>
<% } %>

<style>
	.mr{

		justify-content: end;
	}
	.text{
		min-width: 60px;
		margin-right: 5px;
		font-size: 1vw;
	}
	.gg{
		display: flex;
		width: 100%;
		margin-bottom: 10px;
		height: 40px;
		border-bottom: 1px solid #eeeeee;
		align-items: center;
	}
	.pp{
		width: 80%;
	}
	.col{
		display: flex;
		align-items: center;
		justify-content: right;
	}
	.col1{
		display: flex;
		align-items: center;
		justify-content: right;
		margin: 0 5px 0px 0px;
		overflow: hidden;
		border-radius: 2px;
	}

</style>
<script>
	let addRowInitData={}
	var flag = false;
	function changeForm(){
		$(parent.document.getElementById("mainVersion")).val($("#version").val())
		$("#searchForm").submit();
	}

	$("#quotaType").blur(function (){})
	let isPush =${toJson(isPush)};

	var options ={
		searchForm: $("#searchForm"),
		columnModel: [
			{header:'${text("主键")}', name:'id', index:'a.id' ,hidden:true,hidedlg:true},
			{header:'${text("考核任务id")}', name:'examId',hidden:true,hidedlg:true},
			{header:'${text("考核年度")}', name:'examYear', index:'a.exam_year', width:65, align:"center",hidden:true,hidedlg:true,
				editable:true, edittype:'text', editoptions:{'maxlength':'200', 'class':'form-control'},
				unformat: function(val, obj, cell){
					return $('#'+obj.rowId+'_examYear').val();
				}},
			{header:'${text("指标类型")}', name:'quotaGroup', index:'a.quota_group', width:80, align:"center",
				editable:true, edittype:'text', editoptions:{'maxlength':'200', 'class':'form-control'},
				formatter: function(val, obj, row, act){
					if (row.quotaClass=='1' && row.quotaGroup =='1'){
						return '关键指标';
					}else if(row.quotaGroup =='2'){
						return '单项指标';
					}else{
						return '';
					}
				},
				unformat: function(val, obj, cell){
					return $('#'+obj.rowId+'_quotaGroup').val();
				}
			},
			{header:'${text("指标类别")}', name:'quotaType', index:'a.quota_type', width:120, align:"center",
				formatter: function(val, obj, row, act){
					return js.getDictLabel(${@DictUtils.getDictListJson('dc_quotaType')},
							val, '${text("未知")}', true);
				},
				unformat: function(val, obj, cell){
					return $('#'+obj.rowId+'_quotaType').val();
				},
				editable:true, edittype:'select', editoptions:{'class':'form-control',
					items: $.merge([{dictLabel:'&nbsp;',dictValue:''}],
							${@DictUtils.getDictListJson('dc_quotaType')}),
					itemLabel: 'dictLabel', itemValue: 'dictValue', dataInit: function(element){
						$(element).select2().on("change",function(){$(this).resetValid()});
					}
				}
			},


			{header:'${text("序号")}', name:'sortNum', index:'a.sort_num', width:50, align:"center",
				editable:true, edittype:'text', editoptions:{'maxlength':'200', 'class':'form-control'},
				unformat: function(val, obj, cell){
					return $('#'+obj.rowId+'_sortNum').val();
				}
			},
			{header:'${text("目标内容")}', name:'quotaContent', index:'a.quota_content', width:370, align:"left",
				editable:true, edittype:'text', editoptions:{'maxlength':'200', 'class':'form-control'},
				unformat: function(val, obj, cell){
					return $('#'+obj.rowId+'_quotaContent').val();
				}
			},
			{header:'${text("单位")}', name:'quotaUnit', index:'a.quota_unit', width:60, align:"center",
				editable:true, edittype:'text', editoptions:{'maxlength':'200', 'class':'form-control'},
				unformat: function(val, obj, cell){
					return $('#'+obj.rowId+'_quotaUnit').val();
				}
			},
			{header:'${text("权数")}', name:'quotaWeight', index:'a.quota_weight', width:60, align:"center",
				formatter: function(val, obj, row, act){
					if(val == null){
						return 0.00;
					}else{
						return parseFloat(val).toFixed(2);
					}
				},
				editable:true, edittype:'text', editoptions:{'maxlength':'200', 'class':'form-control'},
				unformat: function(val, obj, cell){
					return $('#'+obj.rowId+'_quotaWeight').val();
				}
			},
			{header:'${text("考核方式")}', name:'assessMethod', index:'a.assess_method', width:93, align:"center",
				editable:true, edittype:'text', editoptions:{'maxlength':'200', 'class':'form-control'},
				formatter: function(val, obj, row, act){
					return js.getDictLabel(${@DictUtils.getDictListJson('dc_exam_assessment')},
							val, '', true);
				},
				unformat: function(val, obj, cell){
					return $('#'+obj.rowId+'_assessMethod').val();
				}
			},
			{header:'${text("本年度目标")}', name:'currentYaerGoal', index:'a.current_yaer_goal', width:65, align:"center",
				editable:true, edittype:'text', editoptions:{'maxlength':'200', 'class':'form-control'},
				unformat: function(val, obj, cell){
					return $('#'+obj.rowId+'_currentYaerGoal').val();
				}
			},
			{header:'${text("上一年度目标任务")}', name:'lastYaerGoal', index:'a.last_yaer_goal', width:70, align:"center",
				editable:true, edittype:'text', editoptions:{'maxlength':'200', 'class':'form-control'},
				unformat: function(val, obj, cell){
					return $('#'+obj.rowId+'_lastYaerGoal').val();
				}
			},
			{header:'${text("上一年度完成情况")}', name:'lastYearComplete', index:'a.last_year_complete', width:65, align:"center",
				editable:true, edittype:'text', editoptions:{'maxlength':'200', 'class':'form-control'},
				unformat: function(val, obj, cell){
					return $('#'+obj.rowId+'_lastYearComplete').val();
				}
			},
			{header:'${text("备注")}', name:'remarks', index:'a.remarks', width:90, align:"center",
				formatter: function(val, obj, row, act){
					return js.getDictLabel(${@DictUtils.getDictListJson('dc_exam_remarks')},
							val, '${text("未知")}', true);
				},
				editable:true, edittype:'text', editoptions:{'maxlength':'200', 'class':'form-control'},
				unformat: function(val, obj, cell){
					return $('#'+obj.rowId+'_remarks').val();
				}
			},
			{header:'${text("考核评分单位")}', name:'gradeOrg',width:120, align:"center",
				formatter: function(val, obj, row, act){
					// if (row.quotaClass=='1' && row.quotaGroup =='1'){
					//  return ""
					// }else{
					if (row.gradeOrg !=null ){
						return js.val(row, 'gradeOrgName');
					}else{
						return "";
					}
					// }
				},
				unformat: function(val, obj, cell){
					var str = cell.childElementCount;
					if (cell.childElementCount > 0) {
						var exameOrgCode= $('#office_'+obj.rowId+'_gradeOrgCode', cell).val();
						var exameOrgName= $('#office_'+obj.rowId+'_gradeOrgName', cell).val();
						return exameOrgCode + '|' + exameOrgName;
					}
					return cell.outerText;
				},
				editable: true, edittype: "custom", editoptions: {
					custom_element: function(val, editOptions) {
						if (val.split('|')[0] == "undefined" && val.split('|')[1] == "undefined") {
							val = "|"
						}
						return js.template('treeselectTpl', {
							id:'office_'+editOptions.id,  title: '考核评分单位',type:"text",
							name: 'gradeOrgCode', value: val.split('|')[0],
							labelName: 'gradeOrgName', labelValue: val.split('|')[1],
							url: '${ctx}/sys/office/treeUnitData', cssClass: ''
						});
					}
				}
			}
		],
		autoGridHeight: function(){return 'auto'},
		showRownum: false,
		onSelectRow: function(id, isSelect, event){

		},
		//editGrid: false,
		showFooter: true, // 是否显示底部合计行
		// 加载成功后执行事件
		ajaxSuccess: function(data){
			var info = $('#dataGrid').dataGrid('getRowData');
			$(parent.document.getElementById("dataInfo")).val(JSON.stringify(info));
			refreshZpCount();
		}
	}
	// 初始化DataGrid对象
	$('#dataGrid').dataGrid(options);

	function refresh(type,orgCode){
		let url_ = window.location.href;
		var arr= url_.split("&");
		var req = arr.slice(0,arr.length -3).join('&');
		let version =$("#version").val();
		if (type != null){
			if (orgCode == 'success'){
				window.location.replace(req+'&remarks3=0&copyVersion='+type+'&versionNumber='+type + '&examYear=' + $("#examYear").val());
			}else{
				var request_info = arr.slice(0,arr.length -5).join('&');
				window.location.replace(request_info+'&exameOrg='+orgCode+'&remarks3=0&copyVersion='+type+'&versionNumber='+type + '&examYear=' + $("#examYear").val());
				$(parent.refreshStyle());
			}
		}else{
			if (version != null){
				window.location.replace(req+'&remarks3=1&copyVersion='+version+'&versionNumber='+version + '&examYear=' + $("#examYear").val());
			}else{
				window.location.replace(req+'&remarks3=1'+ '&examYear=' + $("#examYear").val());
			}
		}
	}

	function batchUpdate() {
		let version=$("#version").val();
		if (version == ' ' || version == null){
			js.showMessage("当前版本为初始版本，请新建版本或选择版本后操作!!!")
			return;
		}
		if (version == isPush){
			js.showMessage("当前版本已发布,不允许进行此操作!!!")
			return;
		}
		$("#copyVersion").val($("#version").val());
		$(parent.document.getElementById("mainVersion")).val($("#version").val())
		$(parent.document.getElementById("version_name")).val($("#version").val())
		$(parent.document.getElementById("batch_flag")).val("1")
		var examId = $("#examId").val();
		$.ajax({
			url: "${ctx}/quota/dcSupExamSumQuotaInfo/makeCopy",
			type: "post",
			cache: false,
			async:false,
			data: {
				"examId":examId,
				"copyVersion":$("#copyVersion").val()
			},
			success: function(res){
				//js.showMessage(res.message);
				refresh();
			}
		});
	}

	function accAdd(arg1,arg2){
		var r1,r2,m;
		try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0}
		try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0}
		m=Math.pow(10,Math.max(r1,r2))
		return (arg1*m+arg2*m)/m
	}

	function refreshZpCount(){
		let data = $('#dataGrid').dataGrid('getRowData');
		let allQuotaWeight=0;
		let subScore=0;
		let addScore=0;
		for (let i = 0; i < data.length; i++) {
			if (data[i].quotaWeight == 'undefined' ||data[i].quotaWeight==''){
				continue;
			}
			if (data[i].quotaType == "加分项"){
				addScore=accAdd(parseFloat(data[i].quotaWeight||0),addScore);
			}else if(data[i].quotaType == "倒扣分项"){
				subScore=accAdd(parseFloat(data[i].quotaWeight||0),subScore);
			}else{
				allQuotaWeight=accAdd(parseFloat(data[i].quotaWeight||0),allQuotaWeight);
			}
		}
		$('#dataGrid').dataGrid("footerData", "set", {
			"quotaType" : "<center><span>汇总：</span></center>",
			"quotaContent" : "(单项+关键)总权数：<span>"+parseFloat(allQuotaWeight).toFixed(2)+"</span>分",
			"assessMethod" : "<span>倒扣分总权数:</span>",
			"currentYaerGoal" : "<span>"+parseFloat(subScore).toFixed(2)+"</span>分",
			"remarks": "<span>加分项总权数：</span>",
			"gradeOrg": "<span>"+parseFloat(addScore).toFixed(2)+"</span>分"
		}, false);
	}

	$("#batchUpdateQuotaContent").click(function (){
		// 版本号不能为空
		let version=$("#version").val();
		let versionName= $("#select2-version-container").text();
		if (version == ' ' || version == null){
			js.showMessage("当前版本为初始版本，请新建版本或选择版本后操作!!!")
			return;
		}
		if (version == isPush){
			js.showMessage("当前版本已发布,不允许进行此操作!!!")
			return;
		}
		js.addTabPage(null, "修改指标","${ctx}/quota/dcSupExamSumQuotaInfo/batchUpdateQuota?examId=${dcSupExamSumQuotaInfo.examId}&examYear=${dcSupExamSumQuotaInfo.examYear}&versionNumber="+version+"&versionName="+versionName, true);
	})

	$("#batchAdd").click(function (){
		// 版本号不能为空
		let version=$("#version").val();
		if (version == ' ' || version == null){
			js.showMessage("当前版本为初始版本，请新建版本或选择版本后操作!!!")
			return;
		}
		if (version == isPush){
			js.showMessage("当前版本已发布,不允许进行此操作!!!")
			return;
		}
		// 指标id  examYear 版本号
		js.addTabPage(null, "新增指标","${ctx}/quota/dcSupExamSumQuotaInfo/batchAddQuota?examId=${dcSupExamSumQuotaInfo.examId}&examYear=${dcSupExamSumQuotaInfo.examYear}&versionNumber="+version, true);
	})

	function getDate(){
		let now=new Date()
		var date2= now.toLocaleDateString().split("/");
		var result="";
		for (let key in date2){
			if (key == 1){
				if (date2[key].length < 2){
					date2[key] = "0"+date2[key];
				}
			}
			result=result+date2[key];
		}
		var timeString = now.toLocaleTimeString().replace(":","").replace(":","").substring(0,4);
		return result+timeString;
	}

	$("#export").click(function (){
		js.layer.open({
			type: 1,
			area: ['500px'],
			title: '${text("导出指标汇总数据")}',
			resize: false,
			scrollbar: true,
			content: js.template('exportTpl'),
			success: function(layero, index){
				layero.find('input[type="checkbox"]').iCheck();
			},
			btn: ['<i class="fa fa-check"></i> ${text("导出")}',
				'<i class="fa fa-remove"></i> ${text("关闭")}'],
			btn1: function(index, layero){
				// 获取选中的列
				let exportColumn=[];
				layero.find("input[name='exportColumn']:checkbox").each(function(){
					if(true == $(this).is(':checked')){
						exportColumn.push($(this).val());
					}
				});
				// 将选中的列，放到查询条件中
				$('#exportColumn').val(exportColumn);
				// 获取用户选择的体系版本
				let version=$("#version").val();
				// 提交到后台导出
				js.ajaxSubmitForm($('#searchForm'), {
					url:'${ctx}/quota/dcSupExamSumQuotaInfo/export?versionNumber='+version,
					downloadFile:true
				});
			}
		});
	})

	// $("#export").click(function (){
	// 	let version=$("#version").val();
	// 	let xhr = new XMLHttpRequest();
	// 	var url_="";
	// 	if (version != null){
	// 		url_="${ctx}/quota/dcSupExamSumQuotaInfo/export?examId=${dcSupExamSumQuotaInfo.examId}&exameOrg=${dcSupExamSumQuotaInfo.exameOrg}&examYear=${dcSupExamSumQuotaInfo.examYear}&versionNumber="+version;
	// 	}else{
	// 		url_="${ctx}/quota/dcSupExamSumQuotaInfo/export?examId=${dcSupExamSumQuotaInfo.examId}&exameOrg=${dcSupExamSumQuotaInfo.exameOrg}&examYear=${dcSupExamSumQuotaInfo.examYear}&versionNumber=";
	// 	}
	// 	xhr.open('GET', url_, true);
	// 	xhr.setRequestHeader('Content-Type', `application/json`);
	// 	xhr.responseType = 'blob';
	// 	let that = this;
	// 	xhr.onload = function () {
	// 		if (this.status == 200) {
	// 			//接受二进制文件流
	// 			var blob = this.response;
	// 			let downloadElement = document.createElement('a');
	// 			let href = blob;
	// 			if (typeof blob == 'string') {
	// 				downloadElement.target = '_blank';
	// 			} else {
	// 				href = window.URL.createObjectURL(blob) ;//创建下载的链接
	// 			}
	// 			downloadElement.href = href;
	// 			//下载后文件名
	// 			downloadElement.download = "指标汇总"+getDate()+".xls";
	// 			document.body.appendChild(downloadElement)
	// 			downloadElement.click(); //点击下载
	// 			document.body.removeChild(downloadElement); //下载完成移除元素
	// 			if (typeof blob != 'string') {
	// 				window.URL.revokeObjectURL(href); //释放掉blob对象
	// 			}
	// 		}else{
	// 			js.showMessage("文件导出失败");
	// 		}
	// 	}
	// 	xhr.send();
	// })

	$("#exportDocument").click(function () {
		js.layer.open({
			type: 1,
			area: ['400px'],
			title: '${text("导入指标数据")}',
			resize: false,
			scrollbar: true,
			content: js.template('importTpl'),
			success: function (layero, index) {
				layero.find('input[type="checkbox"]').iCheck();
			},
			btn: ['<i class="fa fa-check"></i> ${text("导入")}',
				'<i class="fa fa-remove"></i> ${text("关闭")}'],
			btn1: function (index, layero) {
				var form = {
					inputForm: layero.find('#inputForm'),
					file: layero.find('#file').val()
				};
				if (form.file == '' || (!js.endWith(form.file, '.xls') && !js.endWith(form.file, '.xlsx'))) {
					js.showMessage("${text('文件不正确，请选择后缀为“xls”或“xlsx”的文件。')}", null, 'warning');
					return false;
				}
				js.ajaxSubmitForm(form.inputForm, function (data) {
					if (data.result == Global.TRUE) {
					    var  message=data.message
						if(message.indexOf("&") !=-1){
							var data_info = message.split("&");
							js.showMessage(data_info[1]);
							var result_info=data_info[0].split('-');
							var versionNumber = result_info[0]
							var orgCode = result_info[1]
							$(parent.document.getElementById("mainVersion")).val(versionNumber)
							refresh(versionNumber,orgCode);
						}else{
							js.showMessage(message);
						}
						js.layer.closeAll();

					}else{
						js.showMessage(data.message);
					}
					// page();
				}, "json");
				return true;
			}
		})
	})

	// 引入报送指标
	$("#yinru").click(function () {
		var versionNumber =$("#version").val()
		if(versionNumber==null){
			js.showMessage("引入失败,仅未发布的保存版本可以引入");
			return
		}
		// 版本号需要去除空格
		if(versionNumber.trim()){
			layer.open({
				type: 1
				,title: "" //不显示标题栏
				,btn: ['确认', '取消']
				,btnAlign: 'c'
				,area: '300px;'
				,moveType: 1 //拖拽模式，0或者1
				,content: '<div style="padding: 50px">您确定引入最近报送单位指标到此版本吗</div>'
				,yes: function(layero){
					js.ajaxSubmit('${ctx}/quota/dcSupExamSumQuotaInfo/introQuotaInfo?examId='+$("#examId").val()+'&versionNumber='+$("#version").val(), function(data){
						js.showMessage(data.message);
						if(data.result == Global.TRUE){
							// $("#dataGrid").dataGrid('refresh', 1);
							// 刷新父页面左侧的被考核单位
							window.parent.refreshAssessmentUnit();
						}
					})
				}
			});
		}else{
			js.showMessage("引入失败,仅未发布的保存版本可以引入");
		}

	})
</script>
<script id="treeselectTpl" type="text/template">//<!--<div>
<#form:treeselect id="{{d.id}}" title="{{d.title}}" name="{{d.name}}" value="{{d.value}}"
    labelName="{{d.labelName}}" labelValue="{{d.labelValue}}" url="{{d.url}}"
     class="{{d.cssClass}}" isReturnValue="false" allowClear="true" canSelectRoot="true" canSelectParent="true"
        returnFullName="false" checkbox="false" chkboxType="{'Y':'','N':''}" btnClass="btn-sm"
        placeholder="选择考核评分单位"/>
</div>//--></script>
<!--<% if(hasPermi('quota:dcSupExamSumQuotaInfo:edit')){ %>-->
<!--<% } %>-->
<script id="importTpl" type="text/template">//<!--
<form id="inputForm" action="${ctx}/quota/dcSupExamSumQuotaInfo/importData" method="post" enctype="multipart/form-data"
    class="form-horizontal mt20 mb10" style="overflow:auto;max-height:200px;">
    <div class="row">
        <div class="col-xs-12 col-xs-offset-1">
            <input type="file" id="file" name="file" class="form-file"/>
            <#form:hidden path="examId" />
            <#form:hidden path="examYear" />
            <div class="mt10 pt5">
                <a href="${ctx}/quota/dcSupExamSumQuotaInfo/importTemplate" class="btn btn-default btn-xs"><i class="fa fa-file-excel-o"></i> ${text('下载模板')}</a>
            </div>
            <font color="red" class="pull-left mt10">
                ${text('提示：仅允许导入“xls”或“xlsx”格式文件！')}
            </font>
        </div>
    </div>
</form>
//--></script>
<script id="exportTpl" type="text/template">
	<form id="inputForm2" action="" method="post" enctype="multipart/form-data"
		  class="form-horizontal mt20 mb10" style="overflow:auto;max-height:250px;">
		<div class="row">
			<div class="col-xs-12 col-xs-offset-1">
				<div style="color: #8B8986;">请选择要导出的列</div>
				<div class="mt10 pt5">
					<span id="exportColumn" class="icheck" class="form-control required">
					<!--此处为可选项-->
					<label><input type="checkbox" id="exportColumn2" name="exportColumn" value="quotaType" class="form-control" checked/> 指标类别</label>
					<label><input type="checkbox" id="exportColumn3" name="exportColumn" value="sortNum" class="form-control" checked/> 序号</label>
					<label><input type="checkbox" id="exportColumn4" name="exportColumn" value="quotaContent" class="form-control" checked/> 目标内容</label>
					<label><input type="checkbox" id="exportColumn5" name="exportColumn" value="quotaUnit" class="form-control" checked/> 单位</label>
					<label><input type="checkbox" id="exportColumn6" name="exportColumn" value="quotaWeight" class="form-control" checked/> 权数</label>
					<label><input type="checkbox" id="exportColumn7" name="exportColumn" value="assessMethod" class="form-control" checked/> 考核方式</label>
					<label><input type="checkbox" id="exportColumn8" name="exportColumn" value="currentYaerGoal" class="form-control" checked/> 本年度目标</label>
					<label><input type="checkbox" id="exportColumn9" name="exportColumn" value="lastYaerGoal" class="form-control" checked/> 上一年度目标任务</label>
					<label><input type="checkbox" id="exportColumn10" name="exportColumn" value="lastYearComplete" class="form-control" checked/> 上一年度完成情况</label>
					<label><input type="checkbox" id="exportColumn11" name="exportColumn" value="remarks" class="form-control" checked/> 备注</label>
					<!--是否过滤类型，默认不过滤-->
					<div style="border-bottom: 1px solid #eee;margin: 8px 2px;"></div>
					<div style="color: #8B8986; padding-bottom: 10px;">默认导出全部类型，可以选择单独导出某一类型</div>
					<label><input type="checkbox" id="exportColumn13" name="exportColumn" value="onlyGuanJian" class="form-control"/> 只导出关键指标</label>
					<label><input type="checkbox" id="exportColumn16" name="exportColumn" value="onlyDanXiang" class="form-control"/> 只导出单项指标</label>
					<input type="hidden" name="!exportColumn" value=""/></span>
				</div>
				<font color="red" class="pull-left mt10">
					${text('提示：导出文件不支持再次导入！')}
				</font>
			</div>
		</div>
	</form>
</script>